import { get, post } from '../utils/request';

// 直播列表
export const roomList = (data?: Recordable) => {
  return post('api.auth.room/roomList', data, { loading: true });
};

export const roomDetail = (data?: Recordable) => {
  return post('api.auth.room/roomPreview', data, { loading: true });
};

// 直播间绑定分享人
export const bindShare = (data?: Recordable) => {
  return post('api.auth.data_user/reportLiveRoomShared', data, { loading: true });
}

// 审核状态查询
export const auditStatus = (data?: Recordable) => {
  return post('api.auth.TeamRegister/userRegisterStatus', data, { loading: true });
}

// 验证是否是团长邀请码
export const verifyInviteCode = (data?: Recordable) => {
  return post('api.config/checkInvite', data, { loading: true });
}

// 回放列表
export const playbackList = (data?: Recordable) => {
  return post('api.auth.room/playbackList', data, { loading: true });
}

export default {
  roomList,
  roomDetail,
  bindShare,
  auditStatus,
  verifyInviteCode,
  playbackList
}
